#include "threadpool.hpp"

int main()
{
	ThreadPool* tp = new ThreadPool(10);
	srand(time(nullptr) ^ getpid());
	tp->start();
	while(true)
	{
		int x = rand() % 10 + 1;
		int y = rand() % 5;
		char op = opers[rand() % 5];
		Task t(x,y,op);
		tp->Push(t);
		std::cout << "main thread make task,task : " << t.GetTask() << std::endl;
		sleep(1);
	}
}